@charset "utf8";
/*
 *一、整体样式
 */
/* 清除所有元素内外边距 转换为c3盒子模型 */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* 清除input、button默认边框以及点击高亮 */
input,
button{
  outline: none;
  border: none;
}
/* 清除a标签默认下划线 颜色设置为#333 */
a{
  text-decoration: none;
  color: #333;
  margin: 1.25rem 0;
}
.href{
  color: #fff;
}
/* 页面整体样式 */
body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-size: cover;
}
/*
 *二、CSS全屏背景图片缩小渐变部分
 */
.slideshow {
  position: absolute;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slideshow-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background: no-repeat 50% 50%;
  background-size: cover;
  -webkit-animation-name: kenburns;
          animation-name: kenburns;
  -webkit-animation-timing-function: linear;
          animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-duration: 24s;
          animation-duration: 24s;
  opacity: 1;
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}
.slideshow-image:nth-child(1) {
  -webkit-animation-name: kenburns-1;
          animation-name: kenburns-1;
  z-index: 3;
}
.slideshow-image:nth-child(2) {
  -webkit-animation-name: kenburns-2;
          animation-name: kenburns-2;
  z-index: 2;
}
.slideshow-image:nth-child(3) {
  -webkit-animation-name: kenburns-3;
          animation-name: kenburns-3;
  z-index: 1;
}
.slideshow-image:nth-child(4) {
  -webkit-animation-name: kenburns-4;
          animation-name: kenburns-4;
  z-index: 0;
}

@-webkit-keyframes kenburns-1 {
  0% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  1.5625% {
    opacity: 1;
  }
  23.4375% {
    opacity: 1;
  }
  26.5625% {
    opacity: 0;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  98.4375% {
    opacity: 0;
    -webkit-transform: scale(1.21176);
            transform: scale(1.21176);
  }
  100% {
    opacity: 1;
  }
}

@keyframes kenburns-1 {
  0% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  1.5625% {
    opacity: 1;
  }
  23.4375% {
    opacity: 1;
  }
  26.5625% {
    opacity: 0;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  98.4375% {
    opacity: 0;
    -webkit-transform: scale(1.21176);
            transform: scale(1.21176);
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes kenburns-2 {
  23.4375% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  26.5625% {
    opacity: 1;
  }
  48.4375% {
    opacity: 1;
  }
  51.5625% {
    opacity: 0;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
}
@keyframes kenburns-2 {
  23.4375% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  26.5625% {
    opacity: 1;
  }
  48.4375% {
    opacity: 1;
  }
  51.5625% {
    opacity: 0;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
}
@-webkit-keyframes kenburns-3 {
  48.4375% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  51.5625% {
    opacity: 1;
  }
  73.4375% {
    opacity: 1;
  }
  76.5625% {
    opacity: 0;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
}
@keyframes kenburns-3 {
  48.4375% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  51.5625% {
    opacity: 1;
  }
  73.4375% {
    opacity: 1;
  }
  76.5625% {
    opacity: 0;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
}
@-webkit-keyframes kenburns-4 {
  73.4375% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  76.5625% {
    opacity: 1;
  }
  98.4375% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes kenburns-4 {
  73.4375% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  76.5625% {
    opacity: 1;
  }
  98.4375% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
/*
 *三、导航栏部分
 */
/* 导航栏区域 */
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #5CACEE;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 8;
}
/* 导航栏-列表项 */
li {
  float: left;
  border-right: 1px solid #FFFAFA;
}
/* 为所有列表项添加右边框，最后一项（last-child）除外 */
li:last-child {
  border-right: none;
}
/* 导航栏-超链接 */
li a {
  display: block;
  color: white;
  text-align: center;
  padding: 20px 18px;
  text-decoration: none;
  margin: 0;
}
/* 导航栏-不是home，浮动在超链接上时 */
li a:hover:not(.active) {
  background-color: #87CEFF;
}
/* 导航栏-home */
.active {
  background-color: #20B2AA;
}
/*
 *四、盒子部分
 */
/* 盒子样式 */
.container{
  z-index: 8;
  position: relative;
  width: 60vw;
  height: 68vh;
  background-color: #f2eada;
  box-shadow: 0 1rem 1.5rem rgba(0,0,0,.3),
  0 .5rem .5rem rgba(0,0,0,.2);
  border-radius: 1rem;
  overflow: hidden;
}
/* 将两个form表单设置绝对定位 */
.container-form{
  position: absolute;
  top: 0;
  height: 100%;
  transition: all .5s ease-in-out;
}
/* 设置注册页样式 */
.container-signup{
  left: 0;
  width: 50%;
  z-index: 1;
  opacity: 0;
}
/* 设置登录页样式 */
.container-signin{
  left: 0;
  width: 50%;
  z-index: 2;
  opacity: 1;
}
/* 默认显示signup注册页，通过操作switch类名 显示登录页 */
.container.switch .container-signup{
  transform: translateX(100%);
  z-index: 5;
  opacity: 1;
}
.container.switch .container-signin{
  transform: translateX(100%);
  opacity: 0;
}
/* 设置覆盖层 */
.container-overlay{
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transform: translateX(0);
  transition: transform .5s ease-in-out;
  z-index: 999;
}
/* 设置显示背景图 */
.overlay{
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: url('../img/wallhaven2.png') no-repeat fixed
  center;
  background-size: cover;
  transition: transform .5s ease-in-out;
  /* 完工！ */
}
/* 默认左边显示 通过操作switch类名显示登录页 */
.container.switch .container-overlay{
  transform: translateX(-100%);
}
.container.switch .overlay{
  transform: translateX(50%);
}
/* 设置切换按钮页样式 */
.overlay-slide{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 50%;
  transition: transform .5s ease-in-out;
}
/* 这一块在最后讲解 */ 
/* 这里的意思就是让按钮跟随页面一起进行移动 如果不加会有点难看 */
/* 是不是很难看！ */
.overlay-left{
  transform: translateX(-20%);
}
.overlay-right{
  transform: translateX(0);
  right:0;
}
.container.switch .overlay-left{
  transform: translateX(0);
}
.container.switch .overlay-right{
  transform: translateX(20%);
}
/* 设置表单内元素样式 */
.form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
}
/* 设置input标签样式 */
.input{
  width: 100%;
  margin: 0.5rem 0;
  padding: 1rem;
}
/* 设置表单标题样式 */
.form-title{
  font-family: 方正楷体_GBK;
  font-weight: 350;
  margin-bottom: 1.5rem;
}
/* 设置覆盖层按钮样式 */
.submit-1{
  padding: 1rem 3rem;
  background-image: -webkit-linear-gradient(40deg,#33a3dc 0%,#228fbd 70%);
  border-radius: 1rem;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform .1s ease-in-out;
}
/* 设置页面按钮样式 */
.submit-2{
  margin-top: 7px;
  padding: 1rem 3rem;
  background-image: -webkit-linear-gradient(40deg,#99CCFF 0%,#20B2AA 70%);
  border-radius: 1rem;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform .1s ease-in-out;
}
/* 只设置表单按钮的外边距 */
.form>.submit{
  margin-top: 1.5rem;
}
/* 设置按钮按下样式 */
.submit:active{
  transform: scale(0.95);
}
